package com.example.mqrabbit.myspring.mvc;

import org.springframework.stereotype.Component;

/**
 * Created by SOAL on 2017/6/23 0023.
 */
//@Component
public class RmqConsumer {

    public void rmqProducerMessage(Object object){

        RabbitMessage rabbitMessage=(RabbitMessage) object;

        System.out.println(rabbitMessage.getExchange());
        System.out.println(rabbitMessage.getRouteKey());
        System.out.println(rabbitMessage.getParams().toString());


    }
}
